package com.nciae.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nciae.po.DormitoryHead;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Guoliyu
 * @since 2022-03-30
 */
public interface IDormitoryHeadService extends IService<DormitoryHead> {

    // 分页查询
    List<DormitoryHead> findAll(int index, int capacity, String username);

    // 添加
    void add(DormitoryHead dormitoryHead);

    void update(DormitoryHead dormitoryHead);

    void delete(Long id);

    DormitoryHead findDormitoryById(Long id);
}
